package com.zb.vo;

import com.zb.annotation.NumberPattern;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Author WEN
 * @Date 2023/10/23 0023
 **/
@Data
@ApiModel("工单派单服务商对象")
public class OrderDispatchNetworkVo {
    @NotNull(message = "服务商ID不能为空")
    @ApiModelProperty(value = "服务商ID", required = true)
    private Long networkId;

    @ApiModelProperty(value = "服务商人员ID", example = "0")
    private Long networkEmpId;

    @NotNull(message = "工单ID不能为空")
    @NotEmpty(message = "工单ID不能为空")
    @Size(min = 1, message = "至少必须选项一项工单")
    @ApiModelProperty(value = "工单ID", required = true)
    private List<Long> workIds;

    @Length(max = 100, message = "派单备注长度限制100个字符")
    @ApiModelProperty(value = "派单备注")
    private String remark;
}
